home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / qlist2.zip / QLIST.DOC < prev    next >
Text File  |  1989-03-03  |  18KB  |  389 lines

  1.  
  2.                               Q L I S T
  3.                      QuickBBS On-Line File Lister
  4.                              Version 2.0
  5.  
  6.               (c) Copyright 1988, 1989 by Richard Lovett
  7.                            Kansas City, Mo. 
  8.  
  9.       - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  10.  
  11.       This program is public domain.  No fee is requested,  and
  12.       QLIST can be freely copied and distributed as long as it is
  13.       not sold or used in a commercial application.  However, the
  14.       author retains a copyright and all of its associated rights
  15.       and privileges.
  16.  
  17.       I wish to acknowledge the work of Dan Barrett of CORE BBS
  18.       (619-295-2912), whose QFL (QuickBBS File Lister) inspired me
  19.       to write QLIST.  I have made liberal use of concepts from QFL,
  20.       but have put several additional features into QLIST that I hope
  21.       make it more useful.
  22.  
  23.       Files that should be in this .ARC or .ZIP file are:
  24.          QLIST.EXE ----- The executable program
  25.          QLIST.DOC ----- This file
  26.  
  27.      If you would like to repay me for the use of this program, let me
  28.      know how you like QLIST or what changes you'd like to see. Worse
  29.      than no payment for a program is no feedback.
  30.  
  31.      VERSION HISTORY:
  32.  
  33.        Ver. 1.0 -- Sept. 88 -- First public release.
  34.  
  35.        Ver. 1.1 -- 9/19/88 --- Added features to generate statistics
  36.                                on total files, total bytes and bytes
  37.                                free in a file list.
  38.  
  39.        Ver. 2.0 -- 3/1/89 ---- Made the file compression commands more
  40.                                flexible to accomodate PKZIP and
  41.                                future file compression programs. Fixed a
  42.                                bug that caused filenames beginning with
  43.                                a digit to be dropped from lists.
  44.  
  45.      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  46.  
  47. QLIST produces an on-line list of all or part of the files on a 
  48. QuickBBS or Fido-Net bulletin board system.  By means of a QBBS 
  49. or Fido event (in which the BBS exists to DOS at a predetermined
  50. time and errorlevel and triggers a batch file), QLIST can be 
  51. set to produce this list -- or several different lists -- automat-
  52. ically as often as you wish.  My QBBS board executes QLIST at 1 a.m. 
  53. daily.
  54.  
  55. QLIST is keyed to security levels.  Users will get a list of only
  56. the  files they have access to.  You can have QLIST create lists for
  57. as many different access levels as you want, and QLIST will store
  58. each of them in whatever directory you specify.  QLIST also can
  59. compress the lists for easier downloading, using the file compres-
  60. sion program of your choice.
  61.  
  62. QLIST requires three external files:
  63.  
  64.    1.  FLSEARCH.CTL.  If you are a QuickBBS sysop, you know the purpose 
  65.        of this file and how to create it.  For the non-QBBS sysop,
  66.        FLSEARCH.CTL is a text file you create that contains paths and
  67.        privilege levels for each of the QBBS files subdirectories.  If
  68.        you are a Fido-Net sysop, read below for instructions on
  69.        creating FLSEARCH.CTL.  QLIST must be in the same directory as
  70.        FLSEARCH.CTL.
  71.  
  72.    2.  QLIST.CTL.  This is another text file you create.  It is a
  73.        setup file that tells QLIST what to do.  QLIST.CTL must be in
  74.        the same directory as QLIST.
  75.  
  76.    3.  FILES.BBS.  You probably have one of these files in each of
  77.        your BBS files subdirectories.  QLIST uses FILES.BBS to know
  78.        what files are in each subdirectory, and also uses the
  79.        descriptions you have given to each file.
  80.  
  81. If QLIST cannot find FLSEARCH.CTL or QLIST.CTL, it will halt with an 
  82. error message.  If it cannot find a FILES.BBS file in a particular 
  83. directory, it won't stop, but it won't produce a list of the files 
  84. in that directory.  Conversely, QLIST will not include any files in
  85. the output file that aren't listed in FILES.BBS.
  86.  
  87. You can run QLIST from the DOS command line by making sure the directory 
  88. containing QLIST and QuickBBS is the default and then typing "QLIST"
  89. (without the quote marks) at the DOS prompt.  Or, as indicated earlier, 
  90. you can include QLIST in a batch file.
  91.  
  92. When run, QLIST reads data from QLIST.CTL in order to know what lists 
  93. you want created, what privilege levels each list is associated with, 
  94. and the name and path of the output file for each list.  QLIST then 
  95. reads data from FLSEARCH.CTL and matches security levels in each of 
  96. its file areas with the security levels you specified in QLIST.CTL.  
  97.  
  98. For each list you specify in QLIST.CTL, QLIST creates a list of 
  99. all files with a security level equal to or less than the level you 
  100. desire, gives it a filename you specify, and puts it in whatever 
  101. subdirectory you want.  You also have the option for QLIST to
  102. compress the output file, and to erase the original afterward.
  103.  
  104.  
  105. ------------------
  106. CREATING QLIST.CTL
  107. ------------------
  108.  
  109. QLIST.CTL is an ASCII text file that consists largely of keywords
  110. (special commands), some followed by other text or commands.  The
  111. sample QLIST.CTL file below should make it clear how to write one.
  112.  
  113. There are 14 keywords.  (As of Ver. 2, these include three new keywords
  114. -- COMPRESS, COMMAND and COMPFILE -- and the keyword ARC has been
  115. dropped.)  The keywords can be typed in uppercase or lowercase, but
  116. they should be flush left (no leading spaces) and should have at least
  117. one space following them.  The keywords are:
  118.  
  119.      HEADER -- Header lines are printed at the top of the file list 
  120.      and can include your BBS name, phone number, sysop name and 
  121.      whatever else you want.  You can have up to 10 header lines,
  122.      each up to 79 characters long.  Each line will be centered.
  123.      Any text following the word HEADER will be put in the file.  If
  124.      you want a blank line in the heading, just type HEADER on a line
  125.      by itself.
  126.  
  127.      FOOTER -- Works the same as a header but is printed at the end of
  128.      the file.  You can have up to 10 footer lines, each 79 or fewer
  129.      characters.  Footer lines will be written flush left rather than
  130.      centered.
  131.  
  132.      TARGET -- This is the full path and filename of the list file
  133.      that QLIST will create.  You will want to make sure you put this
  134.      file in a subdirectory (file area) accessible to callers with the
  135.      security level you specify for this particular list.
  136.  
  137.      SECURITY -- Whatever number you type after this keyword will 
  138.      govern which of your BBS file areas will be listed in a 
  139.      particular QLIST list.  If you enter 5, QLIST will include all 
  140.      file areas with a security of 5 or less.  Numeric security levels 
  141.      will mean more to QBBS sysops than to Fido sysops, but for purposes 
  142.      of QLIST, both systems can use numeric privilege levels.  (See the
  143.      section on FLSEARCH.CTL below.)
  144.  
  145.      COMMENTS -- QLIST parses through the FILES.BBS file in each file
  146.      area that will be part of a list, and includes some of that 
  147.      information in the output file.  Most sysops put headings and
  148.      comments in their FILES.BBS files along with the filenames and
  149.      descriptions.  If you put the keyword COMMENTS in a setup, those
  150.      extra lines will be included in the output.  The default is to
  151.      leave them out.
  152.  
  153.      If comments are omitted, that also omits any heading you may
  154.      have typed into FILES.BBS to tell users which file area is
  155.      being listed, etc.  In that case, QLIST gets the name of the
  156.      file area from FLSEARCH.CTL.  (The underline characters that
  157.      represent spaces in FLSEARCH.CTL will be converted to spaces.)
  158.      If comments are included, QLIST assumes that one or more of the
  159.      comment lines in FILES.BBS constitutes the heading, and will
  160.      not generate its own from FLSEARCH.CTL.
  161.  
  162.      Similarly, if you include comments, QLIST assumes you have
  163.      included in FILES.BBS a header along the lines of:
  164.  
  165.        FILENAME   SIZE    DATE    DESCIPTION
  166.        --------   ----    ----    ------------------------------
  167.  
  168.      Therefore, it will not generate its own.  However, if COMME